import java.lang.Thread;
public class ThreadX extends Thread{
    public ThreadX(String name){
        super(null,null,name);
    }
    @Override
    public void run() {
        super.run();

        //...
        while (true) {
            try {
                System.out.println(this.getName() + " hello.. ");

                sleep(50);
            } catch (InterruptedException e) {
                throw new RuntimeException(e);
            }
        }
        //...

    }
}
